﻿// ע�

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProtoBuf;

namespace IotContract.Models.Mqtt;
[ProtoContract]
public class MqttClientInfo
{
    [ProtoMember(1)]
    public string Id { get; set; }
    [ProtoMember(2)]
    public string Endpoint { get; set; }
    [ProtoMember(3)]
    public DateTime ConnectedTimestamp { get; set; }
    [ProtoMember(4)]
    public DateTime LastPacketReceivedTimestamp { get; set; }
    [ProtoMember(5)]
    public DateTime LastPacketSentTimestamp { get; set; }
    [ProtoMember(6)]
    public DateTime LastNonKeepAlivePacketReceivedTimestamp { get; set; }
    [ProtoMember(7)]
    public long ReceivedApplicationMessagesCount { get; set; }
    [ProtoMember(8)]
    public long SentApplicationMessagesCount { get; set; }
    [ProtoMember(9)]
    public long ReceivedPacketsCount { get; set; }
    [ProtoMember(10)]
    public long SentPacketsCount { get; set; }

}
